package com.woorigil.social.domain;

public class ProviderUtils {
	public static String viewPage(ProviderCode providerCode, String metaId) {
		String url = null;
		if (providerCode == ProviderCode.CP) {
			url = "http://www.coupang.com/deal.pang?coupang=" + metaId;
		} else if (providerCode == ProviderCode.WM) {
			url = "http://www.wemakeprice.com/deal/adeal/" + metaId;
		} else if (providerCode == ProviderCode.GP) {
			url = "http://www.groupon.kr/app/product/pview/" + metaId;
		} else if (providerCode == ProviderCode.OC) {
			url = "http://www.cjmall.com/prd/detail_cate.jsp?chn_cd=30001016&item_cd=" + metaId;
		} else if (providerCode == ProviderCode.TM) {
			url = "http://www.ticketmonster.co.kr/deal/" + metaId;
		}
		return url;
	}
}
